package com.zhiyou.app.shop.website.dao;

import java.util.List;
import java.util.Map;

import com.zhiyou.app.shop.manager.dao.IBaseDAO;
import com.zhiyou.app.shop.website.dao.pojo.UserStock;

public interface IUserStockDao extends IBaseDAO<UserStock, Integer> {

	public List<UserStock> findByStockType(String type);
	
	public int execute(String sql,Map<String,Object> params);
	
	public int executeHql(String hql,Map<String,Object> params);
	
	public long findByPrice(float price,String stockType);//根据价格查询当前剩余总数
	
	public List<UserStock> findByPriceAndType(float price,String stockType,int round,int page ,int pageSize);
	
	Long findStock(String account, String type);
	
	public List<UserStock> findByType(String type);
	
	List<UserStock> findByUserId(String userid);
	
}
